package com.zpc.myvideoserver.mapper;

import com.zpc.myvideoserver.entity.User;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Select;
import org.springframework.stereotype.Repository;

/**
 * <p>
 * 用户表 Mapper 接口
 * </p>
 *
 * @author zpc
 * @since 2023/11/03
 */
@Repository
public interface UserMapper extends BaseMapper<User> {
    @Select("<script>" +
            "select  * from user where user.name='${username}'"+
            "</script>")
    public User getUserByName(String uesrname);
}
